import request from '@/utils/request'

// 查询产品列表
export function listCircletable(query) {
  return request({
    url: '/manage/circletable/list',
    method: 'get',
    params: query
  })
}

// 查询产品详细
export function getCircletable(productId) {
  return request({
    url: '/manage/circletable/' + productId,
    method: 'get'
  })
}

// 新增产品
export function addCircletable(data) {
  return request({
    url: '/manage/circletable',
    method: 'post',
    data: data
  })
}

// 修改产品
export function updateCircletable(data) {
  return request({
    url: '/manage/circletable',
    method: 'put',
    data: data
  })
}

// 删除产品
export function delCircletable(productId) {
  return request({
    url: '/manage/circletable/' + productId,
    method: 'delete'
  })
}
